﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<SDT.Model.Comment>>" %>
<div class="comment-list">
    <div class="comment-idea">
        <h3>
            <img alt="" src="/Images/binhluanbandoc.png" style="vertical-align:middle" /> &nbsp; Bình luận & hỏi đáp về sản phẩm (<%=Model.ToList().Count %>)
        </h3>
    </div>
    <div class="comment-body">
        <%foreach (var c in Model)
          { %>
        <div class="title"><%=c.Title %></div>
        <div class="email"><%=c.AddBy %>(<%=c.AddByEmail%>)</div>
        <div><%=c.CommentContent %></div>
        <div class="datetime">(<%=c.CommentDate.HasValue ? c.CommentDate.Value.ToString("dd/MM/yyyy HH:mm:ss") : string.Empty%>)</div>
        <div class="separate">&nbsp;</div>
        <%} %>
    </div>
</div>
